import request from '@/utils/request.js'
// 获取所有角色列表
export const sysRole = params => {
        return request({
            url: '/sys/role',
            params
        })
    }
    // 获取基本信息
export const company = id => {
    return request({
        url: `/company/${id}`
    })
}

// 新增角色
export const sysRolePost = data => {
        return request({
            url: '/sys/role',
            method: 'post',
            data
        })
    }
    // 删除角色
export const sysRoleDel = id => {
        return request({
            url: '/sys/role/' + id,
            method: 'delete'
        })
    }
    // 编辑角色
export const sysRolePut = data => {
    return request({
        url: '/sys/role/' + data.id,
        method: 'put',
        data
    })
}